export const columns = [
  {
    type: 'selection',
    width: 55
  },
  {
    prop: 'fullName',
    label: '公司名称'
  },
  {
    type: 'slot',
    slotName: 'industryId',
    label: '所属行业'
  },
  {
    prop: 'nature',
    label: '公司性质'
  },
  {
    prop: 'scale',
    label: '公司规模'
  },
  {
    type: 'slot',
    slotName: 'belong',
    label: '招聘会'
  },
  {
    prop: 'address',
    label: '公司地址'
  },
  {
    type: 'slot',
    slotName: 'action',
    label: '操作',
    width: 200
  }
]

export const formItemsFun = function (options) {
  return [
    {
      type: 'input',
      label: '公司名称',
      data: 'name'
    },
    {
      type: 'select',
      label: '招聘会',
      data: 'jobFairsId',
      options,
      extendKey: {
        label: 'title',
        value: 'id'
      }
    }
  ]
}

export const scaleArray = ['0-20人', '20-99人', '100-499人', '500-999人', '1000-9999人', '10000人以上']

export const natureArray = ['私营/民营企业', '国有企业', '合资企业', '其他']

export const weekendArray = ['双休', '单休', '大小周', '排班轮休']

export const overTimeArray = ['不加班', '偶尔加班', '弹性工作']
